Added tests for kwargs and keyword errors