Added test using a stub