Unit test for Slot