use an async writer object to write to ports
fixed read test to check on "value" instead of "sample"