added hwx.test.R