Add tests for autocreation