Implement and test attachment save function
Exclude ZATHURA_PLUGIN_REGISTER for lcov