Triad - Fixes, Tests, and Tutorial

Pull request for triad fixes in snap-core and the test suite and tutorial in demo.