added test cases to lookupversion, cleaned up some tests