tests: switch to previous theme before deleting the current theme