remove rspec warning about stub
try to do tests more stable