Added tests for Device domain class missed in last commit.