Add framework and examples for both unit testing and e2e testing