added tests for #sq_in_check