Changes in test steps to avoid tests failing because of javascript