test command bug fixes.