test integrated to HSpec.