Add tests for configuration methods

This commit also includes fix for configuration methods of DataMapper and MongoMapper collection. Closes #280.