tests from tutorial