Added tests for new inventory functionality