added legend + tests