Test created for within period check

Refactored viewWithin period, fix, datePair != null, it can never be
null. //redundant code.
Add displaying id in viewAll and viewPeriod
Refactored date related test to DatePairTest

First commit