added better finally clause to activation key tests