added getController tests
implemented getController