Moved definition of mock functions into separate file