refactoring tests
added tests for verifying hwdata is cleared