fix typos and bug with scope
setup test framework