bugfix nullpointer in RestControllerTest