added specs for all related code

added specs for success/filure notifications