Add few more fprintd unit tests and cleanups
Avoid repeating setup/teardown operations and add a few more tests to check error conditions.
Plus, use more unittests features.
Avoid repeating setup/teardown operations and add a few more tests to check error conditions.
Plus, use more unittests features.