fixes for tests in local browser environment