fixed js tests to work with newer Steward, improved assertElements