add testing and analysis