Fixes search for attributes and adds getValue method to untitest.