Add ProfilerManagerTest and QueryManagerTest