Fixed bugs in YPosture. Added test