Fix some write issues.
Added testing of klunk_write, klunk_write_error and klunk_find_request.