Adds init file in test dir
Uses tempfile to read messages