Rewrite our unit tests

While our tests before did code coverage, we didn't actually check the
results of anything. So, now we do a better job of it.

Change-Id: I668824b694ccfd595f2673c34a3532592fc7576a
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Merge "Rewrite our unit tests"