Unit tests for Ass. Fix some bugs therein.