Fixed DateRange and VariableFamily; added a simple test.

Change-Id: I6ca76b5596697d525837fd0cf2f6ac220340b96e
Signed-off-by: Filip Wieland <filiplamparski@gmail.com>