First draft of testing framework