added test checking double upgrading