finished tests for controller