A testbed for integrated fault diagnosis and cyber security investigation