add capability to check return code of function using regexp

Add support of regexp in the and_return method.
rspec test added to cover it.