gates loader + tests