fix builder script.
Fixed levels helper and wrote a test.