Refactoring the tests - reusable components