read test source code from external file