Checking in partial fix of unit test

New unit test frame work that allows full UI to operate in the
background developed. Unit tests however are still not working.