Real-time inventory monitoring with Faye. fixed some tests as well