Refactor fake test functions to be accessible anywhere