added tests from PR #103

Hey,

Now that the `valueOf panic` issue is fixed by #106 I just added three test cases that were posted in #103 to spot future regressions.


/cc @neilconway I included your ObjectsAreEqual() case, hope that is okay. :smile: