ToEither + tests