Tests: Read mock source code from sample files instead of hard coded strings