passing controller test by assigning mocks to properties