Move existing tests from tests/ to tests/unit/.
Preparation for adding functional tests.