added test for status controller and unit tests