Add configuration options for slave
Add spec test