make examples runnable from within package source
move test specific utils into test helper