added test cases&fixed bugs
added test cases&fixed bugs

cycheungar/teamform-seed,raymondlui719/teamform-seed,cycheungar/teamform-seed,raymondlui719/teamform-seed,CarsonChow/teamform-seed,ykcsteven/teamform-seed,ykcsteven/teamform-seed,CarsonChow/teamform-seed