simulating pressing button from UI and check it in calculator