Initial tests and minimal implementation