Unit tests for statem