add test for get_attribute subroutine