Added specs for distinct order search