Write better assertions in node