Applied testComplete() function to tests.