Adding more test cases + bug test with reallocation of vector
Fixes for latest bug checkout NotifierTestForReferenceBug.cpp
Code format