adjusted demo junit test