add node tests and fix message read problems