Test a simple angular factory