checkTestLevel method created

method cretaed to check the count testLevel in level table.