span unit testing