Implemented some assorted unit tests (previously stubbed).