Fixed mock in unit test