Testing for REST controller