fix scoping for test