Assert version compatibility correctly