making the assertion generic
Merge pull request #232 from raghavgautam/master

making the assertion generic