add unit test for spinlock module of slib++