unit tests started, fixed adding null values for inputs with no selections