test with stub