app different approach testing if