Updated Frame object tests and refactored functions