Add non-regression testing infrastructures and first tests.