Fixed localization caps + added tests

spacing around `%`