fleshed out tests for extract scripts