Fix test for profile = true