added scala mapping to json and repository integration tests