Cybersecurity Testing And Intrusion Detection For Cyber-Physical Power Systems