Framework for automated testing