complete slab coding & simple test