Fix ErrorLogger & add spec file + fix src tests