improvements to test code (thank you to @cstamas!)
adding THANKS