added mock,when and return methods