Fixed bug in MaidNodeService and updated test.