more api tests and examples

Here are some more passing tests and an additional example for the api usage for writable streams. Using `opts.outputs` seems a little nicer than using `opts.o` for that one.