tweaks to support both postbooks and masterref in tests
get sales order test working against both databases
don't nerf the test
Merge pull request #1095 from shackbarth/masterref

tweaks to support both postbooks and masterref in tests
added tests for 21866,21508,21986,21990,21989