More changes in test steps to avoid tests failing because of javascript