Implemented integration test to cover REST controller