properly expose class members for testing