added more testing. Added method to process nodes sinchronously