Tests + Macros

Hi,

1) Adding --macros option for DbTapQueryCommand
2) Adding tests for DbTapQueryCommand

Thanks,
Vishal