switch to XCTest
replace BOOL pointer parameter with BOOL return value for blocks