Improved lib/manager unit test