Fix test command bug
Swap dom stack order