Added several examples and tests