added tests and fixes for partial percept match