updated tests, added patch verify & fixed doc