Added tests for provider and messages;

moved samples to sample folder