Lightweight library with testing functions for composing asynchronous and event-based operations in JavaScript