Fix PHP notices for when field not set in fields array
Refactor traversal tests and more assertions
Fix PHP notice on traversal