Silence constant redefinition warnings
Add tests