fix inventory field helper
fix tests