refactored BlocksControllerTest