Figured how to use mock to work with views