adding app initializer and tests