Added debugging to test #51 #50 and #48