Added test for needUpgrade for core