Change ruby syntax in tests