updates test to expect.to method