Check that 'then', 'catch' and 'finally' are functions