added a unitest for initialization