Correct mistakes in test case for 507316