Use more appropriate asserts; remove debug prints.
Add missing tests.
Add missing tests.