Adding filtering and tests
Adding spec for profile manager and reorganizing structure