assignment moved in test