updated tests; fixed attribute parser bug