testing code as facing problem