test w/stubs