update condition for position argument and add tests