test lib with extern templates