FLUID-5265: Slight refactoring and unit tests

Added unit tests to show the module directory doesn't have to have the same name as the module.
Also corrected a couple bugs with the toArray method.
1) it wasn't actually using the delimiter
2) it didn't trim whitespace from the delimited strings