added test to open web browser, did some refactoring