rearranged test environment, potential fix for #2 (ratio allocation) and some dynamic rearranging of the polybos generation stuff.