Gun law fails another court test