Fixed localization caps + added tests

```
} else {
  cb();
}
```