Updated test.pl to test the correct no of rests

Before if only 3 resturants with demo true are present even then the
test case use to pass it does not use to check for the completion. Now
it also checks for the number of correct or deisred resturants here
which is 4.