unit testing a directive, not nice :-(