testing in and out of code