SQL filters regression testing scenario