adding tests and exposing headers to fix #70