Commons committee slams legal aid tests