Added test for upgrader

Change-Id: Ic22b5e97b9e06e52fdcad95b135dc3abb29e74f6