Putting bootstrap flash method in helper module, switching to factories in some more tests