use public api for testing rather than grabbing instance variables