fixed errors, isolated test