Add oracle tests #1463

Open
lunny wants to merge 24 commits from lunny/test_oracle2 into master