added junit test for band attribute printWhenExpression

git-svn-id: http://svn.code.sf.net/p/dynamicreports/code/trunk@781 bf0c503b-2351-4f66-9eae-aa52f3279a3f
fixed a bug in toc which adds entries to toc of a component regardless of its printwhenexpression value

git-svn-id: http://svn.code.sf.net/p/dynamicreports/code/trunk@782 bf0c503b-2351-4f66-9eae-aa52f3279a3f