Properly checking for test flag if admin user/pass flags are used