Added a lot of tests.