Added tests for init and set