Adds some unit tests for period calculations