Fixing test problems

And adding a bit of documentation