Add test for custom attribute setter.
has() option returns count in attributes.