added active selection unit tests