Simplified tests and added ex22.pl test
Removed debug line