Added unittest to all scripts, fixed menu testing script