Implement init method and init method test