updated tests
fixed small error in state with new system
all tests passing GCC 4.9 std=c++11