Added test directory and state testing spec