avoid calculating min where there are no values
raising exception when there are multiple imports on single line
fail if exception is raised
added test for multiple imports exception
added tests for groups