Device Unit tests

Merging in Unit-Tests.  Currently Device has 100% Coverage.  The remaining modules are a work in progress.