moved tests out of library