Two approaches for testing identifiability and corresponding algorithms