begun adding unit tests for controller

begun adding unit tests for controller