fix the TestTools module and set up a database up/down helper for testing