fix incorrect test setup
add secret title validation