refactor testbase and test scopes
move framework part, renamed to match BTest pattern