Add comments, make comparison less strict

Using `assertIsInstance` should allow the intent of the test to be validated
without worrying about implementation issues like "does the mock library swap
out objects under the hood?"
Merge pull request #1538 from Ichimonji10/fix-test

Add comments, make comparison less strict