cleaned up assertion method.
Shaped up the debugger after alot of changes to the core code. Made
changes to the test setup to give better feedbacks on successes etc.
Ready for merge.