Add some tests for needs-alloc?