Add unit tests to catch issue #11.