Functions and tests for bundles