Fixed Bug xyz

I fixed the bug xyz which is caused by a wrong input. Therefore I
changed
the function y and inserted some tests.
Merge branch 'master' of https://github.com/vimaier/Beta-Beat.src.git