Implemented test sample creation