Fix tests and open command