Initial versio of basic tests.
Provided basic tests and added documentation for changed code.
Fixed caching issue in basic tests, created permission role instead of multiple permission settings.
Removed unused Entity display.
Added tests and now checks that cache key is only added if flag is displayed.
Merge pull request #15 from md-systems/addingTestsAndDocs

Added basic tests and flagging permission access check