Resolve failed test at Ruby 1.9.3
Change instance method to class method in Device
Define dummy device to test
Add spec to device