Adding unit tests

I've started on some unit tests. Currently I converted 2 of the existing tests (data and interest encode/decode) to a unit test format, and I added a test of Name methods similar to one in ndn-js.