added missing validation in test