Updated TestCase::getMockForModel() to return Table instance

Just took a dig at fixing the todo. I hope the changes done are what as expected.