Testpackage added and unittest for Period