added rudimentary testing support