refactor -testall for use as example at wwx2014