Let caller of script_to_address() explicitly ask for testnet conversion instead of auto fallback;  Also add a unit test function for the conversion

Signed-off-by: Huang Le <4tarhl@gmail.com>