Fixed pimpl and added little test.