Stubbing stuff to make tests run smooth