Updated the check for duplicate test

Updated so the object itself builds a query based on everything
available (see Fruit.cpp)
Updated test case because as Fruits stand, the same name for fruit can
exist with different timestamp, along with a thread->sleep to show
differentiation