Fix issue #73. Convert tests to PSR0, introduce base test classes. Speed them up.

79 sec with that version vs 162 with latest 7.x-2.x on my machine.