Fixed bug on server shutdown (#47)
Fixed nodeunit setUp and tearDown issues in tests (#46)