Added test for stub overriding.