impelemented tests for supervisor

Change-Id: I793ebe5fe95cb690ab1a4df4de5fd98cbf75a97a