modify test for unittest