Parser.attr() method unit test