Added unit testing for tristate and pointer spinlocks.