Portable hardness tester