Fixes the tests and removes some debug prints.

The tests still take too long to execute.