abstracts bitmask handlers; adds tests for mac-addr; adds MacAddr#octets