change test logic for past test
add model test
add controller test(api)
Merge remote-tracking branch 'remotes/origin/ph4' into ph4_review