added regression tests for fixed null pointer exception due to User Name attributes and sub-attributes