test passes except for status err, refactored