Fixed deliver behavious if ipa is not given

Added test for that