Added a few tests to document behaviour