add tests for mirror_left_to_right
deduct color type
make sure we terminate the loop