a better approach to run tests