Added specs for the init funtion