Added boolean device type utils tests.
Fixed broken tests.