Adds main declaration in the test.