Added helper rect functions and fixed test that was failing by I don't know what but it's working again now