add init method and first test