scoping tests