added tests for version->declare/qv without using version explicitly