Very early unit tests with libcheck. Will need proper functional tests as well