Some unit test fixes and updating python regression tester