split test into priv.js and unpriv.js