Set up functioning testing framework

(hopefully once and for all)