replaced potential null-pointer exception with an Assert.fail()
changed strategy for testing sockets and cores against lscpu to
accommodate more possibilities caused by arch and rhel release