Implmented tests for controller