fixed test bug for foundation