working validation + test