Fixed issues with isAssoc methods, added docs, and added a lot of tests

Change-Id: If95305c92863c9c3ad6bfcbebb722c377f60bbfe
Refactor tests after splitting of of patching code from diff

Change-Id: I1b817f958db053c21ece6d1918e3f04e7a86162e
Merge "Fixed issues with isAssoc methods, added docs, and added a lot of tests"
Merge "Refactor tests after splitting of of patching code from diff"