move tests outside of lib directory