Added test case for spin_trylock, fixed name of spin_trylock function