Add testing setup and basic unit tests.