tighten tests upgrade app for security