refactored with rspec and fixed config output

https://instructure.atlassian.net/browse/PLAT-349

https://instructure.atlassian.net/browse/PLAT-353