Fixed broken test by defining return value for mock.