add mock calls for testing
add test snippets
Merge pull request #393 from andyperlitch/ngConsole

Add test snippets and mock gateway calls