added function call test, fixed test_initialization error