Fixed localization caps + added tests

I agree about moving it to adb.