Update sample app to use frame for positioning
Use frame for positioning in tests