Check if file was renamed or not

Add check whether file renamed or not to tests.