verify functionality: if a page violates a constraint like a validity date an error is shown
add tdd via mocha
fix test