add basic tests

This expands the specs by a few simple assertions. The only change to the directive is the use of `$timeout` instead of `setTimeout` for cleaner tests. This was already a proposed change in #124.