testing strategies for angular js post