Raise error if traget nil
Run correct test