Added tests for library