Refactored the testcode and added zerodate-test for mysql

Signed-off-by: Max Stemplinger <ms@campudus.com>
refactored code

Signed-off-by: Max Stemplinger <ms@campudus.com>
refactored code

Signed-off-by: Max Stemplinger <ms@campudus.com>
Merge pull request #47 from Zwergal/test_refactor

Refactored the testcode and added zerodate-test for mysql