refactoring fake handler into a sep project which can be used from the Api and Tests