Added test for auto instantiation