Removed redundant check (handled by validateMacAddress()).
Removed redundant code paths covered by previous parameters.
Added some more project tests.
Removed more redundant checks.
Improved test coverage of device API.