Add testing framework and tests.