fixed test code
updated copyright