refactored.
return mockFunction status.