fix rotate test