add minimal tests, async option to prepare for SSE
Merge pull request #79 from Trott/sse

add minimal tests, async option to prepare for SSE