added take_inventory functionality; fleshed out test suite