fixed profile name validation error, added correct test