added summary
stricter tests implemented