Adds minimum check test. It's not a very useful test, but at least it allows us to run it under valgrind and check for leaks automatically