Added failing test for #13
Fix initialization error handling