Completed c tests