Test framework code