Added initial unit tests.