updated nested step definitions to be more flexible with the different ways it can be defined in ruby.