Creating state test