Additional unit tests, code cleanup

https://www.pivotaltracker.com/s/projects/684825/stories/82225792

Added additional unit tests for processor classes and for FedoraEndpoint class.
There was also some incidental code clean up as suggested by Sonar