Fix function name in test description.
Use Either as return type for error handling.
Add more tests.