Create test_leveling.js

A file that contains some modal code for leveling with xp gains and losses