add test to verify that next attribute and next element cannot co-exist.