add test for move_inside function