data stamp validation bug fixed, added corresponding unit test