Adding test to make sure show() is called in correct order