prepare seperation of test logic from main API logic