Use rustpkg to build, move tests outside of lib.rs