[mac]Issue #123, Test + unittest.