refactoring block tests