Add tests set cfg

Add a `struct r_set_cfg` to the test setup. Solves issue #121.