tested with angularjs 1.2.18