Added all usage examples as tests