Adding example for throws in nodeunit