tests passing using blocks