Stubbing SQL based tests