Added tests for the sector function