handle better if origin is given
added test for originFileName