Add transformation constraints. Completes #26
Change applicable assertEquals assertions to assertCount for consistency