Add sync to make sure data is on disk before crashing

Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
Enable local-only test without the netdump functionality

Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
Add function to create ref default file

Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>
PEP8 cleanup

Signed-off-by: Louis Bouchard <louis.bouchard@canonical.com>