Testing registerCommand