Addition of a PhaseStateTest Class for Testing

Class for testing phase state.