Added tests and code for list by tag in model