More test coverage to lib/mojito

More test coverage to lib/mojito