writing some simple tests and making controller return json to prep for angular js