adding tests, had to modify some test framework Scala to make the masterUrl visible to tests