Ag #18 manage iframe url

- Prevent replace of the location.hash if not in an iframe
- Replace only location.hash for an iframe
- Add some tests for these elements