Fixed a -1 bug in YaPI
Updated testsuite.
Merge pull request #56 from mchf/Code-11-SP2

Simple fix in YaPI