Added tests for Observer Pattern.