moved tests to unittest module