made a unittest for basic functionality