included unittest for integrity