Fixing var docblock
Adding tests for database publisher.