Fix syntax error and remove duplicated test