Added prefix delete functionality.
Started writing tests for prefix manager.