added more mailcomposer tests, fixed a few bugs that occurred while creating tests