upgrading to 4.1 and implementing a whereHas in test