added accessor creation + tests #8