fixed a broken test and updated the init method