Add tests for Joosy.Resource.REST.basePath() and some fixes