Turned AtlasUtils into Scala for test