test error duplication fix