Fix tests and profile settings