Added unit tests for getURLParameter