Added tests for DeclareQueueWithCounts

Added unit tests for DeclareQueueWithCounts, fixed some types and
vreverted some typo fixes for a cleaner pull request.