Added tests for attributes and session