Improvement in javascript testing and ui use cases