refactoring the create test logic to make it more user friendly