Added test to profile_name and fixed profile_name regex