record: added bean pattern (getters and setters) tests + fixes