Add profile_register function.
Add regress tests for get_from_name.