Add basic command tests for apply_diff