Unit tests for Controller