fixing sed
fixing tests