added Pat and TIMain tests.