Shutdown unnecessary operation during background mode & test mode, improve class relation to each other