Implemented first bunch of tests.