Added functionality for in browser tests