Update tests to include more data types.
fix reading/writing bigint, uuid etc
always fulfill stream promise
fix imports and add initial event code