Add tests and change chrome init