testing app logic