Fixed localization caps + added tests

spacing