removed test (can always convert to string)
added namespace getter
added getter
handle null case
changed exception type
added more tests