fixed test query
before insert now we delete all data from table