Remove use of deprecated functionaity in some tests.
Update code in demos using deprecated interfaces.
Update system test for new assembly sytax.