working insert/update in junit