Added a test which shows a bug in query with OrderBy and EqJoin

I integrated a test with package for #44 issue