fix regex test and build app before testing