Rename test40.out.txt to test40.ref