added return value tests for controllers