Fix isValid method
Add getTestModeParameter method
Add Response helper method test