write a spec for run method