Implements tests and test runner