Fixed the what_if_I_upgrade check

Put the check about the already applied scripts on top and renamed a test method.