adding unit tests (91% grid-directive.js covered)