Testing of main functionality