smart test framework (not unit test)