changed command structure for improved testability
add cd and ls spec tests