Move statements inside __main__ test