Added more tests for ApiFlagController