Hook tests into package testing mechanism

Made a PR for code review and to trigger Travis build.