Added tests for calls on dependencies for gallery controller test spec