test getDirtyRestaurants function