moved tests into main file, executed when run interactively