added tests for version hooks