handling multiple appearance of same error
add test file for multiple appearance of same error