added main which runs basic test.