add self-test
fix setup and test for minimal projects