test DOM methods