Added JUnit tests for isValidURLFormation