Tag fixes and tests

Fix tag with session plus seconds settings. Add tests.

https://redmine.openinfosecfoundation.org/issues/995
https://buildbot.suricata-ids.org/builders/inliniac/builds/21