added test
tests for controller