Fixed many tiny bugs to get unit tests running
Added tests for BaseCommand global add methods and stubs for the other methods still needing tests