Feature/unit tests

Created test cases for state and phase models, added case for date formatter method to cover third party class usage.