Define and debug tests - all pass