fix specs to replace deprecated stub! and mock