Add tests for dynamic behavior