Added some protocol tests and PHPCS