refactor test code
add test for solve_row1_tile