moved main to a basicTest file