Update and rename test51.out.txt to test51.ref