changed openOn and fixed failed tests