tests with library