Add set_position method
Add test for set_position
Fix typo in set_position