|#1501| adding unit tests
|#1501| fixing bug - previous success message now invisible on clicking cancel on all cruds