added test_vals_rect, clean up needed