Fixed: test and logic run program