refactored todo completion spec