Added unit test for yoyo functionality.
Added yoyo example.