Added command executor and mock tests