Implements tests.