separated test from library