Improve URL validation + add unit test + fix verification of activity launched.

The activity test should be updated with a mocked
server response to make it work offline.