move test into package