[TEST] Add minimal test framework

Use `make check` to run the tests.