Added unit tests for Period