Added test for the loss_fraction exporter

There was a missing test, see https://bugs.launchpad.net/oq-engine/+bug/1287230