Added new function asreStructuredTest to keep backward compatibility
- To keep code clean, functionality is implemented in asStructuredText
  with an added flag rst with default value False to preserve behaviour.