Merge pull request #133 from systopia/master

Fix for #126 and #116
keep signature/validation date
Merge pull request #135 from systopia/issue_120

possible fix for #120
fixed tests for lower php versions