adding test and success callback