add notification function to store module and add unit-test