fix unit test setup for static lib