Added unit tests for State pattern
Added command files for running demos and unit tests.