Front-end validation for tests