Unit tests for scaffold