testing init and destroy methods