add unit tests for the flash object
Merge pull request #791 from mnlg/add-flash-tests

add unit tests for the flash object