upstream unit tests