updated test to cover non existing mock exception