Added tests to catch issues I previously tried to introduce

See https://github.com/substack/node-ent/pull/5 for more details, but the tests should be self-explanatory.