Add specs for cancel_build