added unit tests for devicestate class , all unit tests pass, all cucmber tests pass