Adding pop method to UIViewController with tests