Add shell helper functionality. Add core tests.