tests: test returned thunk directly