Refactored Yaml indentation test as discussed - removed getter, tested indentation by using dump