Refactored the testcode and added zerodate-test for mysql

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